.class Les/ej;
.super Landroid/app/Dialog;
.source "PopupDialog.java"


# instance fields
.field private a:I

.field private b:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const v0, 0x7f1200f9

    .line 1
    invoke-direct {p0, p1, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    const/4 p1, -0x1

    .line 2
    iput p1, p0, Les/ej;->a:I

    const/16 p1, 0x50

    .line 3
    iput p1, p0, Les/ej;->b:I

    return-void
.end method

.method private a()I
    .locals 2

    .line 14
    iget v0, p0, Les/ej;->a:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_0

    return v0

    .line 15
    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "layout id is invalid"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method private a(Landroid/view/Window;)V
    .locals 2

    .line 9
    iget v0, p0, Les/ej;->b:I

    const/16 v1, 0x11

    if-eq v0, v1, :cond_3

    const/16 v1, 0x30

    if-eq v0, v1, :cond_2

    const v1, 0x800003

    if-eq v0, v1, :cond_1

    const v1, 0x800005

    if-eq v0, v1, :cond_0

    const v0, 0x7f1200d6

    .line 10
    invoke-virtual {p1, v0}, Landroid/view/Window;->setWindowAnimations(I)V

    goto :goto_0

    :cond_0
    const v0, 0x7f120155

    .line 11
    invoke-virtual {p1, v0}, Landroid/view/Window;->setWindowAnimations(I)V

    goto :goto_0

    :cond_1
    const v0, 0x7f120113

    .line 12
    invoke-virtual {p1, v0}, Landroid/view/Window;->setWindowAnimations(I)V

    goto :goto_0

    :cond_2
    const v0, 0x7f120217

    .line 13
    invoke-virtual {p1, v0}, Landroid/view/Window;->setWindowAnimations(I)V

    :cond_3
    :goto_0
    return-void
.end method

.method private a(Landroid/view/Window;Landroid/view/WindowManager$LayoutParams;)V
    .locals 4

    .line 1
    iget v0, p0, Les/ej;->b:I

    iput v0, p2, Landroid/view/WindowManager$LayoutParams;->gravity:I

    const/4 v1, -0x1

    const/4 v2, -0x2

    const v3, 0x800003

    if-eq v0, v3, :cond_3

    const v3, 0x800005

    if-ne v0, v3, :cond_0

    goto :goto_1

    :cond_0
    const/16 v3, 0x30

    if-eq v0, v3, :cond_2

    const/16 v3, 0x50

    if-ne v0, v3, :cond_1

    goto :goto_0

    .line 2
    :cond_1
    iput v2, p2, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 3
    iput v2, p2, Landroid/view/WindowManager$LayoutParams;->height:I

    goto :goto_2

    .line 4
    :cond_2
    :goto_0
    iput v1, p2, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 5
    iput v2, p2, Landroid/view/WindowManager$LayoutParams;->height:I

    goto :goto_2

    .line 6
    :cond_3
    :goto_1
    iput v2, p2, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 7
    iput v1, p2, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 8
    :goto_2
    invoke-virtual {p1, p2}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    return-void
.end method

.method private b()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v1, 0x2

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    .line 3
    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v1

    .line 4
    iget v2, p0, Les/ej;->b:I

    iput v2, v1, Landroid/view/WindowManager$LayoutParams;->gravity:I

    const/4 v2, 0x0

    .line 5
    invoke-virtual {v0, v2}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 6
    invoke-direct {p0, v0, v1}, Les/ej;->a(Landroid/view/Window;Landroid/view/WindowManager$LayoutParams;)V

    .line 7
    invoke-direct {p0, v0}, Les/ej;->a(Landroid/view/Window;)V

    :cond_0
    return-void
.end method


# virtual methods
.method protected a(I)V
    .locals 0
    .param p1    # I
        .annotation build Landroidx/annotation/LayoutRes;
        .end annotation
    .end param

    .line 16
    iput p1, p0, Les/ej;->a:I

    return-void
.end method

.method protected b(I)V
    .locals 0

    .line 8
    iput p1, p0, Les/ej;->b:I

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-direct {p0}, Les/ej;->a()I

    move-result p1

    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setContentView(I)V

    .line 3
    invoke-direct {p0}, Les/ej;->b()V

    return-void
.end method
